home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / comm / bbs / s342q07.lha / ctdlansi.h < prev    next >
C/C++ Source or Header  |  1995-02-01  |  24KB  |  684 lines

  1.         /*
  2. * Use these only if we're (semi) ANSI capable, with prototypes.
  3. */
  4. #define ANSI_PROTOTYPING
  5. #ifdef ANSI_PROTOTYPING
  6.  
  7. void Output_Citadel_Message(char *pcode, long arg1, long arg2, long arg3);
  8.  
  9. void CheckVI(char *where);
  10. /* These functions are located in CTDL.C */
  11. char doChat(char expand, char first);
  12. char doEnter(char expand, char first);
  13. char doForget(char expand);
  14. char doGoto(char expand);
  15. char doHelp(char expand);
  16. char doKnown(char expand);
  17. char doLogin(char expand);
  18. char doLogout(char expand, char first);
  19. char doMeet(char moreYet);
  20. char doRead(char expand, char first);
  21. char doSkip(char expand);
  22. char doUngoto(char expand);
  23. char OptionValidate(int mode);
  24. char OptionCheck(char mode);
  25. char doRegular(char x, char c);
  26. char doSysop(void);
  27. char getCommand(char *c, char bs);
  28. char doAide(char moreYet, char first);
  29. void doDirectory(char doDir, label fileName, char *phrase);
  30. void UserAdmin(logBuffer *lBuf);
  31. void greeting(void);
  32. /* These functions are located in LOG.C */
  33. char doInviteDisplay(void);
  34. void login(char *password);
  35. void newPW(void);
  36. void newUser(logBuffer *lBuf);
  37. void terminate(int discon, int save);
  38. void slideLTab(int slot, int last);
  39. void storeLog(void);
  40. char GetIntMessage(void);
  41. char CheckIntMessage(void);
  42. int DoAllQuestion(char *posprompt, char *netprompt);
  43. int PWSlot(char pw[NAMESIZE], char load);
  44. int strCmpU(char s[], char t[]);
  45. int findPerson(char *name, logBuffer *lBuf);
  46. int GetUser(label who, logBuffer *lBuf, char Menu);
  47. /* These functions are located in MSG.C */
  48. void AddMail();                 /* intentionally unfinished */
  49. void MailWork(int slot);
  50. void LocalForwarding(label name, logBuffer *workBuf);
  51. void NetForwarding(logBuffer *lBuf);
  52. void AddNetMail(char *system, char CreditWho);
  53. void SetShowLimits(char rev, int *start, int *finish, int *increment);
  54. void aideMessage(char *name, char noteDeletedMessage);
  55. void DelMsg(char killit, int m);
  56. void TranslateFilename(char *realfn, char *fn);
  57. void doFlush(FILE *whichmsg, struct mBuf *mFile);
  58. void fakeFullCase(char *text);
  59. void AddMail(char *DaPerson);
  60. void flushMsgBuf(void);
  61. void *FindIcky(char *, char *);
  62. void *EatIcky(char *str);
  63. void *FindIckyPeople(struct User_Id *, MessageBuffer *);
  64. void *EatIckyPeople(char *str);
  65. void MakeIntoRouteMail(int result, DOMAIN_FILE fn, char isdomain, char *system,
  66. char *domain, char OriginIsMsgBase, int slot);
  67. void mFormat(char *string);
  68. void mPeek(void);
  69. void msgToDisk(char *filename, char all, MSG_NUMBER id, SECTOR_ID loc,
  70. UNS_16 size);
  71. void noteLogMessage(logBuffer *lBuf, int logNo);
  72. void noteMessage(logBuffer *lBuf);
  73. void noteAMessage(theMessages *base, int slots, MSG_NUMBER id, SECTOR_ID loc);
  74. void netMailProcess(int netPlace);
  75. void netMailOut(char isdomain, char *system, char *domain, char MsgBase,
  76. int slot);
  77. void putWord(char *st);
  78. void CheckForwarding(logBuffer *lbuf);
  79. void prNetStyle(int i, int (*method)(int c), char GetMsg, char *GoingFor);
  80. void NetCC(char *d);
  81. void TellRoute(void);
  82. void ShowReply(int i);
  83. void undirect(void);
  84. void dLine(char *garp);
  85. char printMessage(int status);
  86. char InterruptMessage(void);
  87. char redirect(char *name);
  88. char deleteMessage(int m);
  89. char canRespond(void);
  90. char dGetWord(char *dest, int lim);
  91. char doActualWrite(FILE *whichmsg, struct mBuf *mFile, char c);
  92. char mAbort(void);
  93. char getRecipient(void);
  94. char CheckForSpecial(int second, int third);
  95. char replyMessage(MSG_NUMBER msgNo, SECTOR_ID Loc);
  96. char HasWritePrivs(void);
  97. char hldMessage(char IsReply);
  98. char idiotMessage(void);
  99. char moveMessage(char answer, int m, char *toReturn);
  100. char findMessage(SECTOR_ID loc, MSG_NUMBER id, char ClearOthers);
  101. char pullIt(int m);
  102. char putMessage(logBuffer *lBuf);
  103. int procMessage(char uploading, char IsReply);
  104. int PersonExists(char *name);
  105. int getWord(char *dest, char *source, int offset, int lim);
  106. int putMsgChar(char c);
  107. int DoRespond(void);
  108. int makeMessage(char uploading);
  109. int showMessages(char whichMess, char revOrder, MSG_NUMBER since,
  110. char (*Style)(int i));
  111. int FindNextFile(char *base);
  112. /* These functions are located in INFO.C */
  113. void EditInfo(void);
  114. void ReadCitInfo(void);
  115. void WriteOutInformation(void);
  116. char *GetInfo(label name);
  117. void KillInfo(char *name);
  118. void ChangeInfoName(char *newname);
  119. void AllInfo(void);
  120. char doInfo(void);
  121. /* These functions are located in MISC.C */
  122. char ARCDir(FILE *fd, char *FileName, long *RSize, long *SSize, char *DateStr);
  123. char ZIPDir(FILE *fd, char *FileName, long *RSize, long *SSize, char *DateStr);
  124. char ZOODir(FILE *fd, char *FileName, long *RSize, long *SSize, char *DateStr);
  125. char LZHDir(FILE *fd, char *FileName, long *RSize, long *SSize, char *DateStr);
  126. char *PrintPretty(long s, char *result);
  127. char GifDir(FILE *fd, char longexpl, char *buf);
  128. char *Current_Time(void);
  129. char reconfigure(void);
  130. int  CompressType(char *name);
  131. char configure(logBuffer *lBuf, char AllQuestions, char AllowAbort);
  132. void DosToNormal(char *DateStr, UNS_16 DosDate);
  133. void changeDate(void);
  134. void civTime(int *hours, char **which);
  135. void FileCommentUpdate(char *filename, char aideMsg);
  136. void crashout(char *message);
  137. void DirFree();
  138. void *DirCheck();
  139. void doCR(void);
  140. void ExtraOption(char *Opts[], char *NewOpt);
  141. void download(char whichMess, char revOrder, char whatkind, char global,
  142. int Compression);
  143. void doGlobal(char whichMess, char revOrder);
  144. void getCdate(int *year, char **month, int *day, int *hours, int *minutes);
  145. char ingestFile(char *name, MessageBuffer *msg);
  146. void NormStr(char *st);
  147. void SaveInterrupted(MessageBuffer *SomeMsg);
  148. void TranFiles(int protocol, char *phrase);
  149. void *CheckFwd();
  150. void *EatForwarding(char *line);
  151. void FreeForwarding(ForwardMail *data);
  152. void UpdateForwarding(void);
  153. void *FindSelect();
  154. void TranSend(int protocol, void (*fn)(DirEntry *fn), char *filespec,
  155. char *phrase, char NeedToMove);
  156. void CompressedDir(DirEntry *fn);
  157. void doFormatted(DirEntry *fn);
  158. void upLoad(int WC, char*file, char NeedToMove);
  159. void writeTutorial(FILE *fd, char noviceWarning);
  160. char *formHeader(void);
  161. char *formRoom(int roomNo, int showPriv, int noDiscrimination);
  162. char *formDate(void);
  163. char HelpIfPresent(char *filename);
  164. char *lbyte(char *l);
  165. char MultiBanner(char *basename);
  166. char tutorial(char *filename, char addHelpArea);
  167. char visible(AN_UNSIGNED c);
  168. char CheckDLimit(long estimated);
  169. char TranAdmin(int protocol, int NumFiles);
  170. int DirCmp();
  171. int AsciiHeader(long fileSize, char *filename);
  172. int FindFunnyEntry(char *fn);
  173. int CmdMenuList(char *Opts[], SListBase *Selects, char *HelpFile, char *List,
  174. char moreYet, char OneMore);
  175. int GetMenuChar(void);
  176. int GetSecond(void);
  177. int NextSeq(void);
  178. int putBufChar(int c);
  179. int putFLChar(int c);
  180. void transmitFile(DirEntry *filename);
  181. void SendThatDamnFile(FILE *fbuf, int (*method)(int c));
  182. void *FindSelect();
  183. CRC_TYPE calcrc(unsigned char *ptr, int count);
  184. /* These functions are located in ROOMA.C */
  185. void dumpRoom(char ShowFloor);
  186. void fillMailRoom(void);
  187. void retRoom(char *roomName);
  188. void CountMsgs(int *count, int *NewCount);
  189. void searchRooms(char *str);
  190. void setUp(char justIn);
  191. void systat(void);
  192. void UngotoMaintain(int lRoom);
  193. void SetKnown(int GenVal, int Index, int Room, logBuffer *lBuf);
  194. void listRooms(char mode);
  195. char initCitadel(void);
  196. char CheckForSkippedMsgs(void);
  197. char legalMatch(int i, label target);
  198. char knowRoom(logBuffer *lBuf, int i);
  199. char *DateSearch(char *fn, long *before, long *after);
  200. void fDir(DirEntry *file);
  201. int KnownRoom(int roomNo);
  202. int RealGNR(char *nam, int (*func)(char *room));
  203. int GotoNamedRoom(char *nam, char mode);
  204. int SkippedNewRoom(int i);
  205. int gotoRoom(char *nam, char mode);
  206. int tableRunner(int (*func)(), char OnlyKnown);
  207. int partialExist(label target);
  208. int roomCheck(int (*checker)(), char *nam);
  209. int roomExists(char *room);
  210. void ShowVerbose(DirEntry *fn);
  211. int wildCard(void (*fn)(), char *filename, char needToMove, char *phrase,
  212. char AssumeDflt);
  213. int wild2Card(SListBase *base, void (*fn)());
  214. /* These functions are located in ROOMB.C */
  215. char conGetYesNo(char *prompt);
  216. char coreGetYesNo(char *prompt, int consoleOnly);
  217. char *CleanEnd(char *msg);
  218. char getText(int uploading);
  219. char GetBalance(int uploading, char *buf, int size);
  220. char getYesNo(char *prompt);
  221. char *matchString(char *buf, char *pattern, char *bufEnd);
  222. char renameRoom(void);
  223. char *formatSummary(char *buffer, char NotFinal);
  224. char
  225. getXString(char *prompt, char *target, int targetSize, char *CR_str,
  226. char *dft);
  227. char getXInternal(MenuId id, char *prompt, char *target, int targetSize,
  228. char *CR_str, char *dft);
  229. char SepNameSystem(char *string, char *name, char *system, NetBuffer *buf);
  230. char WhoIsModerator(char *buf);
  231. int CCAddDelete(char *name);
  232. int WritePrivs(char *name);
  233. int CmnNetList(char *name, int *slot, char SBT, char *errstr);
  234. int editText(char *buf, int lim);
  235. int findRoom(void);
  236. int knownHosts(char *name);
  237. int addToList(char *name);
  238. int makeKnown(char *user);
  239. int ListAsShared(char *name);
  240. int makeUnknown(char *user);
  241. int doMakeWork(char *user, int val);
  242. int killFromList(char *sysName);
  243. int searchForRoom(void);
  244. long getNumber(char *prompt, long bottom, long top);
  245. void CCDeliver(void *dd);
  246. int getString(char *prompt, char *buf, int lim, int Flags);
  247. int BlindString(char *buf, int lim, int Flags,
  248. char (*input)(void), void (*output)(char c), char Echo);
  249. void givePrompt(void);
  250. void indexRooms(void);
  251. void insertParagraph(char *buf, int lim);
  252. void makeRoom(void);
  253. int getNormStr(char *prompt, char *s, int size, int Flags);
  254. void noteRoom(void);
  255. void getList(int (*fn)(char *data), char *prompt, int size, char Sysop);
  256. void replaceString(char *buf, int lim, char Global);
  257. void initialArchive(char *fn);
  258. void WriteAList(SListBase *base, char *fn, void (*func)(NumToString *d));
  259. /* These functions are located in FLOORS.C */
  260. int CheckFloor(int i);
  261. int UserToFloor(char *name);
  262. int FindFloor(label name, char doPartial);
  263. int FloorRunner(int start, int (*func)());
  264. int NewRoom(void);
  265. int FirstRoom(int FloorNo);
  266. int RoomHasNew(int i);
  267. int NSRoomHasNew(int i);
  268. int DoFloors(void);
  269. int Zroom(int i);
  270. int FSroom(int i);
  271. int FindAny(int i);
  272. char FAide(void);
  273. int MoveToFloor(char *name);
  274. int DispRoom(int i);
  275. int MaimOrKill(int i);
  276. void DispFloorName(int FloorNo);
  277. void FInvite(void);
  278. void FWithdraw(void);
  279. void FSkipped(void);
  280. char FForget(void);
  281. char FConfigure(void);
  282. char FGotoSkip(int mode);
  283. void DeleteFloors(void);
  284. void MoveRooms(void);
  285. void RenameFloor(void);
  286. void RunDisplay(void);
  287. void CreateFloor(void);
  288. void FlModerator(void);
  289. void putFloor(int i);
  290. void KillFloor(void);
  291. char FKnown(char mode);
  292. /* These functions are located in EVENTS.C */
  293. void ForceAnytime(void);
  294. void InitEvents(void);
  295. void ResolveDLStuff(void);
  296. void InitEvTimes(void);
  297. void setPtrs(void);
  298. void EventShow(void);
  299. void ActiveEvents(char *buf);
  300. void *ChED();
  301. void *ChRed();
  302. void *ChkTwoNumbers();
  303. void *EatTwoNumbers(char *line);
  304. void WrtTwoNumbers();
  305. char DoTimeouts(void);
  306. char HandleQuiet(int index);
  307. char *ChkPreempt(long estimated);
  308. char AlreadyProcessed(EVENT *s);
  309. char *RedirectFile(char *filename, char *systemname);
  310. long WeekDiff(long future, long now);
  311. int CheckAutoDoor(char *name);
  312. int during(EVENT *x);
  313. int passed(EVENT *x);
  314. int eventSort(EVENT *s1, EVENT *s2);
  315. int FigureEvent(int index);
  316. int CmpED();
  317. int CmpTwoLong();
  318. TwoNumbers *MakeTwo(int First, long Second);
  319. /* These functions are in DOMAINS.C */
  320. void WriteDomainContents(void);
  321. void UpdateMap(void);
  322. void RationalizeDomains(void);
  323. void DomainInit(char FirstTime);
  324. void DomainFileAddResult(label DName, label system, label NodeId, char result);
  325. char *LocalName(char *system);
  326. char SystemInSecondary(char *Name, char *Domain, char *dup);
  327. char DomainMailFileName(DOMAIN_FILE buffer, label DName, label NodeId,
  328. label NodeName);
  329. UNS_16 FindCost(char *domain);
  330. int DomainOut(char LocalCheck);
  331. #ifdef CONFIGURE
  332. /* These functions are located in CONFG2.C */
  333. int EatEvent(char *line, int offset);
  334. int GetStoreQuote(char *line, char *target, int *rover, int *offset);
  335. int FigureDays(char *vals);
  336. char *getLVal(char *line, int *rover, char fin);
  337. MULTI_NET_DATA FigureNets(char *str);
  338. void EvIsDoor();
  339. void EvFree();
  340. void EventWrite();
  341. /* These functions are located in CONFG.C */
  342. void init(int attended);
  343. void readString(char *source, char *destination, char doProc);
  344. void xlatfmt( char *s );
  345. void illegal(char *errorstring);
  346. void msgInit(void);
  347. void indexRooms(void);
  348. void noteRoom(void);
  349. void logInit(void);
  350. void noteLog(void);
  351. void slideLTab(int slot, int last);
  352. void wrapup(char onlyParams);
  353. void netInit(void);
  354. void crashout(char *str);
  355. void CheckFloors(void);
  356. char isoctal( int c );
  357. char dGetWord(char *dest, int lim);
  358. char zapMsgFile(void);
  359. char realZap(void);
  360. char zapRoomFile(void);
  361. char zapLogFile(void);
  362. char cfindMessage(SECTOR_ID loc, MSG_NUMBER id);
  363. int logSort();
  364. int msgSort();
  365. int strCmpU(char s[], char t[]);
  366. MSG_NUMBER findHighestNative(void);
  367. #endif
  368. /* These functions are located in MODEM.C */
  369. char BBSCharReady(void);
  370. char getMod(void);
  371. char iChar(void);
  372. char JumpStart(int tries, int timeout, int Starter, int t1, int t2,
  373. char (*Method)(int (*wrt)(int c)), int (*WriteFn)(int c));
  374. char Reception(int protocol, int (*WriteFn)(int c));
  375. char recWX(int (*WriteFn)(int c));
  376. char recXYmodem(int (*WriteFn)(int c));
  377. char sendWXchar(int data);
  378. char Transmission(int protocol, char mode);
  379. char XYBlock(int mode, int size);
  380. void FlowControl(void);
  381. void GenTrInit(void);
  382. void initTransfers(void);
  383. void interact(char ask);
  384. void interOut(char c);
  385. void modemInit(int KillCarr);
  386. void ChatGrab(char Up);
  387. void oChar(char c);
  388. void PushBack(char c);
  389. char ModemSetup(char ShouldBeCarrier);
  390. void ringSysop(void);
  391. void runHangup(void);
  392. void SendCmnBlk(char type, TransferBlock *block, char (*SendFn)(int c),
  393. int size);
  394. void SummonSysop(void);
  395. void WXResponses(void);
  396. int ClearWX(void);
  397. int CommonPacket(char type, int size, int (*recFn)(int t), int *Sector);
  398. int CommonWrite(int (*WriteFn)(int c), int size);
  399. int SurreptitiousChar(char c);
  400. void getSize(DirEntry *fileName);
  401. int recWXchar(int ErrorTime);
  402. int sendWCChar(int c);
  403. int YMHdr(long fileSize, char *filename);
  404. int sendWXModem(int c);
  405. int sendYMChar(int c);
  406. int SendYBlk(void);
  407. int XYClear(void);
  408. AN_UNSIGNED modIn(void);
  409. /* These functions are located in LIBROOM.C */
  410. void getRoom(int rm);
  411. void putRoom(int rm);
  412. /* These functions are located in LIBTABL.C */
  413. char readSysTab(char kill, char showMsg);
  414. /* void *GetDynamic(unsigned size); */
  415. int writeSysTab(void);
  416. int common_read(void *block, int size, int elements, FILE *fd, char showMsg);
  417. void openFile(char *filename, FILE **fd);
  418. /* These functions are located in LIBLOG.C */
  419. void getLog(logBuffer *lBuf, int n);
  420. void putLog(logBuffer *lBuf, int n);
  421. /* These functions are located in LIBCRYP.C */
  422. void crypte(void *buf, unsigned len, unsigned seed);
  423. UNS_16 hash(char *str);
  424. /* These functions are located in LIBMSG.C */
  425. char getMessage(int (*Source)(void), char FromNet, char all, char ClearOthers);
  426. void InitMsgBase(void);
  427. void InitBuffers(void);
  428. void getMsgStr(int (*Source)(void), char *dest, int lim);
  429. void startAt(FILE *whichmsg, struct mBuf *mFile, SECTOR_ID sect, int byt);
  430. void unGetMsgChar(char c);
  431. void ZeroMsgBuffer(MessageBuffer *msg);
  432. int getMsgChar(void);
  433. /* These functions are in libmsg also, but handle CC on msgs. */
  434. void *ChkCC();
  435. void DisplayCC();
  436. /* void *EatCC(char *line);
  437. void *MakeCC(char *name, char needstatic); */
  438. void ShowCC(int where);
  439. /* These functions are located in LIBNET.C */
  440. void getNet(int n, NetBuffer *buf);
  441. void putNet(int n, NetBuffer *buf);
  442. char normId(label source, label dest);
  443. /* These functions are located in ARCH.C */
  444. void *EatNMapStr(char *line);
  445. void *EatArchRec(char *line);
  446. void *NtoStrInit(int num, char *str, int num2, char needstatic);
  447. void *ChkNtoStr();
  448. void *ChkStrtoN();
  449. void WrtNtoStr();
  450. void WrtArchRec();
  451. void WrtCC(void *dd);
  452. void FreeNtoStr();
  453. char *AskForNSMap(SListBase *base, int val);
  454. int  GetArchSize(int num);
  455. /* These functions are located in CALLLOG.C */
  456. void logMessage(int val, char *str, char sig);
  457. void CallMsg(char *fn, char *str);
  458. void fileMessage(char mode, char *fn, char IsDL, int protocol, long size);
  459. /* These functions are located in NETMISC.C */
  460. char called_stabilize(void);
  461. char RecipientAvail(void);
  462. char MakeNetted(int m);
  463. char check_for_init(char mode);
  464. char callOut(int i);
  465. char DirectRoute(NetBuffer *system);
  466. char SendPrepAsNormal(char *work, int *count);
  467. char roomsShared(int slot);
  468. char netInfo(char GetName);
  469. char NetValidate(char talk);
  470. char HasOutgoing(int system, int index);
  471. char AnyCallsNeeded(MULTI_NET_DATA whichNets);
  472. char ReqNodeName(char *prompt, label target, label domain, char WideSpecValid,
  473. char Once, char Ask, char Display, char SysopMenu,
  474. NetBuffer *nBuf);
  475. int AckStabilize(int index);
  476. int AddNetMsgs(char *base, void (*procFn)(), char zap, int roomNo, char AddNetArea);
  477. int FindRouteIndex(int system);
  478. int getNMsgChar(void);
  479. int searchNet(char *forId, NetBuffer *buf);
  480. int timeLeft(void);
  481. int GetCompression(int system);
  482. int addSendFile(char *Files);
  483. int searchNameNet(label name, NetBuffer *buf);
  484. int addNetMem(char *netnum);
  485. int makeCall(char EchoErr, MenuId id);
  486. int subNetMem(char *netnum);
  487. int getNetChar(void);
  488. int needToCall(int system, MULTI_NET_DATA CurrentNets);
  489. void inRouteMail(void);
  490. void KillTempFiles(int whichnode);
  491. void NetPrivs(label who);
  492. void NodeValues(MenuId id);
  493. void sendWCFile(FILE *fd);
  494. void DiscardMessage(char *filename);
  495. void inMail(void);
  496. void netController(int NetStart, int NetLength, MULTI_NET_DATA whichNets,
  497. char mode, UNS_16 flags);
  498. void ClearRoomSharing(void);
  499. void ParticipatingNodes(char *target);
  500. void initNetRooms(void);
  501. void AreaCode(char *Id, char *Target);
  502. void setTime(int NetStart, int NetLength);
  503. void moPuts(char *s);
  504. void writeNet(char idsAlso, char LocalOnly);
  505. void NetInit(void);
  506. void netStuff(void);
  507. void getSendFiles(MenuId id, label sysName);
  508. void addNetNode(void);
  509. void editNode(void);
  510. void fileRequest(void);
  511. int DumpRoom(SharedRoom *room, int system, int index, int roomslot,void *d);
  512. void netResult(char *msg);
  513. void killConnection(void);
  514. void setPoll(void);
  515. void EvalNeed(int searcher, MULTI_NET_DATA whichNets);
  516. void parseBadRes(char *c);      /* temporary until next major release */
  517. /* These functions are located in NETCACHE.C */
  518. char SendFastTransfer(void);
  519. void DelFile(DirEntry *f);
  520. char SendMapFile(void);
  521. void ITL_Line(char *data);
  522. char MapFileAccepted(void);
  523. void netFastTran(struct cmd_data *cmds);
  524. void KillCacheFiles(int which);
  525. void ReadFastFiles(void);
  526. void CacheMessages(MULTI_NET_DATA whichNets, char VirtOnly);
  527. void CacheSystem(int system, char moo);
  528. void RecoverMassTransfer(char *line);
  529. /* These functions are located in NETCALL.C */
  530. void caller(void);
  531. void caller_stabilize(void);
  532. void checkMail(void);
  533. void Addressing(int system, int index, char *commnd, char **send1, char **send2,
  534. char **send3, char **name, char *doit);
  535. void EachSharedRoom(int system,
  536. int (*func)(SharedRoom *room, int system, int index, int roomslot, void *d),
  537. int (*virtfunc)(VirtualRoom *room, int sys, int index, int which, void *d),
  538. void *data);
  539. void findAndSend(int commnd, char *send1, char *send2, char *send3, int rover,
  540. int (*MsgSender)(), label roomName, int (*MsgReceiver)(int x, char y));
  541. void NetCC();
  542. void SetHighValues(int rover);
  543. void WriteCC();
  544. char NetRoute(int mode);
  545. void readNegMail(char talk);
  546. void roleReversal(char reversed);
  547. void sendStuff(char reversed, char SureDoIt);
  548. void SendPwd(void);
  549. void sendId(void);
  550. void sendMail(void);
  551. void sendSharedRooms(void);
  552. void doSendFiles(void);
  553. void askFiles(void);
  554. void sendHangUp(void);
  555. void no_good(char *str, char hup);
  556. void netSendFile(DirEntry *fn);
  557. void SendHostFile(char *fn);
  558. char sendNetCommand(struct cmd_data *cmds, char *error);
  559. char multiReceive(struct fl_req *file_data);
  560. char SetAddressFlags(char **s1, char **s2, char **s3, int *commnd, int rover);
  561. int RoutePath(char *rp, char *str);
  562. int netMessage(int uploading);
  563. int s_m_n(void);
  564. int RoomSend(int rover, char *send1, char *send2, char *send3);
  565. int RoomReceive(int rover, char ReplyFirst);
  566. /* These functions are located in NETRCV.C */
  567. void called(void);
  568. void CheckRecipient();
  569. void rcvStuff(char reversed);
  570. void RecoverNetwork(void);
  571. void netPwd(struct cmd_data *cmds);
  572. void doResults(void);
  573. void ReadNetRoomFile(int rover, char *fn);
  574. void UpdateRecoveryFile(char *val);
  575. void getId(void);
  576. void getNextCommand(struct cmd_data *cmds);
  577. void grabCommand(struct cmd_data *cmds, char *sect);
  578. void reply(char state, char *reason);
  579. void reqReversal(char reversed);
  580. void reqCheckMail(void);
  581. void CheckRecipient(char *d);
  582. void targetCheck(void);
  583. void doNetRooms(void);
  584. void getMail(void);
  585. void reqSendFile(struct cmd_data *cmds);
  586. void netFileReq(struct cmd_data *cmds);
  587. void netRRReq(struct cmd_data *cmds, char SendBack);
  588. void netRoomReq(struct cmd_data *cmds);
  589. void recNetMessages(int arraySlot, char *name, int RoomNo, char ReplyFirst);
  590. void netMultiSend(DirEntry *fn);
  591. char RoomRoutable(RoomSearch *data);
  592. int IsRoomRoutable(SharedRoom *room, int system, int index, int roomslot,
  593. void *d);
  594. /* These functions are located in VIRT.C */
  595. char VNeedCall(VirtPoint *VirtP);
  596. int VirtRoomRoutable(VirtualRoom *room, int system, int index, int which,
  597. void *d);
  598. int SendVirtual(int VirtIndex, char *d1, char *d2, char *d3);
  599. int RecVirtualRoom(int VirtIndex, char ReplyFirst);
  600. void SetUpForVirtuals(int VirtIndex, int *VirtNo, char *fn);
  601. void DoVirtuals(int system,
  602. int (*virtfunc)(VirtualRoom *room, int system, int index, int which, void *d),
  603. void *d);
  604. int SendVirtualRoom(VirtualRoom *room, int sys, int index, int which,void *d);
  605. int DumpVRoom(VirtualRoom *room, int system, int index, int which, void *d);
  606. int UnCacheVirtualRoom(VirtualRoom *room, int system, int index, int which,
  607. void *d);
  608. int VRNeedCall(VirtualRoom *room, int system, int index, int which,
  609. char *d);
  610. int VirtualRoomOutgoing(VirtualRoom *room, int system, int index, int which,
  611. char *d);
  612. int VirtualRoomMap(VirtualRoom *room, int system, int index, int which,
  613. void *d);
  614. int CacheVirtualRoom(VirtualRoom *room, int sys, int index, int which, void *d);
  615. void VirtInit(void);
  616. void InitVNode(int slot);
  617. void UpdVirtStuff(void);
  618. void VirtSummary(void);
  619. /* These functions reside in NETITL.C */
  620. char ITL_Receive(char *FileName, int ReplyFirst, int OpenIt,
  621. int (*W)(int c), int (*CloseFn)(FILE *f));
  622. char ITL_Send(char mode);
  623. int sendITLchar(int c);
  624. char ITL_SendMessages(void);
  625. char ITL_StartRecMsgs(char *FileNm, char ReplyFirst, char OpenIt,
  626. int (*OverRide)(int c));
  627. int increment(int c);
  628. void ITL_RecCompact(struct cmd_data *cmds);
  629. void ITL_InitCall(void);
  630. void ITL_StopSendMessages(void);
  631. void ITL_DeInit(void);
  632. void ITL_optimize(char both);
  633. void ITL_rec_optimize(struct cmd_data *cmds);
  634. /* These functions reside in HOT_HELP.C,
  635. courtesy Paul Gauthier. */
  636. int printHelp(char *fileName);
  637. char getFileChar(FILE *file, int init);
  638. int  getHelpNames(FILE *file, char *name, char count);
  639. /* These functions are located in VORTEX.C */
  640. void ClearVortex(void);
  641. void FinVortexing(void);
  642. void InitVortexing(void);
  643. void VortexInit(void);
  644. char NotVortex(void);
  645. long ReadTime(char *time);
  646. /* These functions are located in ROUTE.C */
  647. char RouteHere(char *Id, char *Name, char *Domain);
  648. char AcceptRoute(char *id, char *name);
  649. char FindTheNode(char *id, char *name);
  650. int ReadRoutedDest(int c);
  651. int FindRouteSlot(void);
  652. int SendRoutedAsLocal(void);
  653. int IdStName(char *name);
  654. int ReadRouted(void);
  655. void RouteOut(void);
  656. void netRouteMail(struct cmd_data *cmds);
  657. void NextRouteName(SYS_FILE fn);
  658. void AdjustRoute(void);
  659. void MakeRouted(void);
  660. char *UseNetAlias(char *Name, char FindAlias);
  661. char SendRouteMail(char *filename, char *domainname, char *Tid, char *Tname,
  662. char LocalCheck);
  663. /* Compact.C */
  664. int StartEncode(int (*func)(int c));
  665. int StartDecode(int (*func)(int c));
  666. int Encode(int c);
  667. int Decode(int c);
  668. void StopDecode(void);
  669. void StopEncode( void );
  670. /* Mailfwd.c */
  671. void OpenForwarding(void);
  672. void AddMailForward(char *acct, char *system, char *fwdacct);
  673. void KillLocalFwd(char *name);
  674. char *FindLocalForward(char *name);
  675. /* Stroll.C */
  676. void StrollIt(void);
  677. /* BIO.C */
  678. void EditBio(void);
  679. char GetBioInfo(int which);
  680. void SaveBioInfo(int which);
  681. void ClearBio(int which);
  682. void BioDirectory(void);
  683. #endif
  684.